import request from '@/utils/request'

/**
 * @describe 后台管理相关url
 */
const url = '/system/AdminHandler.ashx'
const method = 'post'

/**
 * @describe 驾校管理目录下的收银管理相关url
 */
const url1 = '/School/MoneyHandler.ashx'

/**
 * @describe 驾校管理目录下的学员管理相关url
 */
const url2 = '/School/StudentHandler.ashx'

/**
 * @describe  action以下一一对应(1.logerAdminList,2.cityList,3.moneyList)
 * @param {*} data 
 * @returns ...
 */
export function AccountManageAPI(data) {
    return request({ url, method, data })
}
export function CityListAPI(data) {
    return request({ url, method, data })
}

// 
export function StudentHandlerAPI(data) {
    return request({ url: url2, method, data })
}

export function MoneyListAPI(data) {
    return request({ url: url1, method, data })
}

// 车辆信息carList
export function CarListAPI(data) {
    return request({ url: '/School/CarHandler.ashx', method, data })
}

// 车辆管理=>维修充值
export function invsetAPI(data) {
    return request({ url: '/School/CarHandler.ashx', method, data })
}

// 车辆管理=>车辆保险
export function insureAPI(data) {
    return request({ url: '/School/CarHandler.ashx', method, data })
}

export function ExamSystamAPI(data) {
    return request({ url: '/School/ExamHandler.ashx', method, data })
}

export function ComNameHandlerAPI(data) {
    return request({
        url: '/School/ComNameHandler.ashx',
        method,
        data
    })
}

// 学时查询
export function StudentAPI(data) {
    return request({
        url: '/School/StudentHandler.ashx',
        method,
        data
    })
}

// 考试明细
export function examDetailAPI(data) {
    return request({ url: '/School/ExamDetailHandler.ashx', method, data })
}

//考试管理=>考试受理明细 
export function accepDetailAPI(data) {
    return request({ url: '/School/ExamHandler.ashx', method, data })
}

// 考试记录
export function examRecordAPI(data) {
    return request({ url: '/School/ExamDetailHandler.ashx', method, data })
}

// 教练管理->教练列表
export function LeaderHandlerAPI(data) {
    return request({ url: '/School/LeaderHandler.ashx', method, data })
}

// 应收账款 
export function debtAPI(data) {
    return request({ url: '/School/MoneyHandler.ashx', method, data })
}

// 支出费用  / 收银日常
export function payOutAPI(data) {
    return request({ url: '/School/MoneyHandler.ashx', method, data })
}

// 班主任体系
export function teacherAPI(data) {
    return request({ url: '/School/TeacherHandler.ashx', method, data })
}

// 在线用户=>驾校管理=>区域配置=>区域信息=>发送系统通知
export function adminAPI(data) {
    return request({url:'/system/AdminHandler.ashx',method,data})
}
